<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: rgba(0, 0, 0, .8);
        }

        .card-con {
            margin: 200px;
        }

        .card {
            position: relative;
            width: 200px;
            height: 350px;
            border-radius: 10px;
            box-shadow: 0 0 30px rgba(0, 0, 0, .3);
            text-align: center;
        }
        .card .text{
            transform: translateZ(60px);
        }
        .front,
        .back {
            position: absolute;
            transform-style: preserve-3d;
            /* 旋转到背面时不可见 */
            backface-visibility: hidden;
            transition: all .8s ease-in-out;
        }

        .front {
            background: url(./imgs/mv1.jpg) center no-repeat;
            background-size: 100% 100%;
        }

        .back {
            transform: rotateY(180deg);
            background: url(./imgs/mv2.jpg) center no-repeat;
            background-size: 100% 100%;
        }

        .card-con:hover .front {
            transform: rotateY(-180deg);
        }

        .card-con:hover .back {
            transform: rotateY(0deg);
            z-index: 99;
        }
    </style>
</head>

<body>
    <div class="card-con">
        <div class="card back">
            <div class="text">
                <h4>反面</h4>
                <p>222222</p>
            </div>
        </div>
        <div class="card front">
            <div class="text">
                <h4>正面</h4>
                <p>111111</p>
            </div>
        </div>
    </div>
</body>

</html>